package com.flute.icrawler.framework.framework.listener;

import java.rmi.RemoteException;

import com.flute.icrawler.framework.framework.CrawlUrl;

public interface ICrawlUrlSubject {

	/**
	 * 通知所有的观察者
	 * 
	 * @param url
	 * @throws RemoteException
	 */
	public void notityObservers(CrawlUrl url) throws RemoteException;

	/**
	 * 注册观察者
	 * 
	 * @param url
	 * @throws RemoteException
	 */
	public void registerObserver(ICrawlTaskListener taskListener)
			throws RemoteException;

	/**
	 * 取消注册观察者
	 * 
	 * @param url
	 * @throws RemoteException
	 */
	public void unRegisterObserver(ICrawlTaskListener taskListener)
			throws RemoteException;

}
